package com.hf.dao.impl;

import com.hf.dao.UserDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//<bean id="userDao" class="com.hf.dao.impl.UserDaoImpl"></bean>
//@Component("userDao") //一眼看上去不知道是哪个层的
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    public void say() {
        System.out.println("hf");
    }
}
